package com.central.apps.dao.inspection;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface inspcriterionDao {
    @Select("select t.`clycode` , t.`id` , t.`clydesc` from `gq_assetclassify` t WHERE 1=1 " +
            "and t.`clycode` not in (select assetsclassify from gq_inspcriterion) " +
            "order by t.createtime asc")
    IPage<Map<String, Object>> getAssetsclassifyAppList(Page page);

    @Select("select inspnum,abstract from gq_inspcriterion where assetsclassify = #{assetsclassify} limit 1")
    Map<String, Object> getInspcriterionByclassify(String assetsclassify);
}
